﻿<%@ Page Language="C#" MasterPageFile="~/Index.Master" AutoEventWireup="true" 
    CodeBehind="Operator.aspx.cs" Inherits="Web.group.Operator" %>
<%@ Register Src="~/controls/message.ascx" TagName="message" TagPrefix="uc" %>
<%@ Register Src="~/Controls/GVPageManager.ascx" TagPrefix="ui" TagName="gv" %>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">

</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <form id="form1" runat="server">
        <div class="content-box">
            <!-- Start Content Box -->
            <div class="content-box-header">
                <h3>
                    管理员维护</h3>
                <ul class="content-box-tabs">
                    <li><a id="a_tab1" href="#tab1" class="default-tab">管理员维护</a></li>
                    <li><a id="a_tab2" href="operatoradd.aspx">添加管理员</a></li>
                </ul>
                <div class="clear">
                </div>
            </div>
            <!-- End .content-box-header -->
            <div class="content-box-content">
                <div class="tab-content default-tab" id="tab1">
                    <uc:message ID="u_message" Visible="false" runat="server" />
                    <asp:GridView ID="GridView1" AutoGenerateColumns="False" runat="server"
                    OnRowCommand="GridView1_RowCommand">
                        <Columns>
                            <asp:BoundField DataField="userid" HeaderText="用户编号" SortExpression="userid" />
                            <asp:BoundField DataField="username" HeaderText="登录名" />
                            <asp:BoundField DataField="nickname" HeaderText="昵称" />
                            <asp:BoundField DataField="registertime" HeaderText="注册时间" />
                            <asp:TemplateField HeaderText="所属分公司">
                                <ItemTemplate>
                                    <asp:Label ID="Label1" runat="server" Text='<%# GetBoName(Commons.StrUtil.FormatValue(Eval("bo")))%>'></asp:Label>
                                </ItemTemplate>
                                
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="用户类型">
                                <ItemTemplate>
                                    <asp:Label Text='<%#Eval("usertype").ToString() == "2"?"超级管理员":"普通管理员" %>' runat="server"></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="管理">
                                <ItemTemplate>
                                    <a href='operatoredit.aspx?userid=<%#Eval("userid") %>' title="修改"><img src='<%#ResolveUrl("~/resources/images/icons/pencil.png") %>' alt="修改" /></a> 
                                    <asp:ImageButton ImageUrl="~/resources/images/icons/cross.png" AlternateText="删除" 
                                    CommandName="del" CommandArgument='<%#Eval("userid") %>'  runat="server"
                                    OnClientClick="return confirm('确认要进行删除吗')"/>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                    <ui:gv ID="GV" runat="server" />
                </div>
                <!-- End #tab1 -->
            </div>
            <!-- End .content-box-content -->
        </div>
    </form>
</asp:Content>
